from django.urls import path, include
from rest_framework.routers import DefaultRouter

from app.views import (
    CityModelViewSet,
    MachineModelViewSet,
    HostModelViewSet,
)

router = DefaultRouter()
router.register(r'city/', CityModelViewSet)
router.register(r'machine/', MachineModelViewSet)
router.register(r'host/', HostModelViewSet)

urlpatterns = [
    path('', include(router.urls)),
]
